<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>05_JS运算符</title>
</head>
<body>
<script>
    console.log(1+1);
    console.log(1-1);
    console.log(6*3);
    console.log(6/2);

    //比较运算符
    console.log(3 > 10);
    console.log(3 < 10);
    console.log('与'> '或');
    console.log('与'.charCodeAt());
    console.log('或'.charCodeAt());
    console.log('非'.charCodeAt());


    let a = 1;
    let b = true;
    console.log(a == b);//==为松散的比较:值相同
    console.log(a === b);//===为严格比较: 类型和值都相同

    let c = 0;
    console.log(c == 0 ? 'yes':'no');

</script>

</body>
</html>